import java.util.Scanner;

public class Training06 {
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        System.out.println("请输入打印行星的行数：");
        int a=in.nextInt();
        for (int i=1;i<=a;i++){
            for (int j=1;j<=a-i;j++) {
                System.out.print(" ");
            }
            for (int k = 1; k <= 2*i-1; k++) {
                System.out.print("*");
            }
            System.out.println();
        }
    }
}
